<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title><%= __('hy') %></title>
    <link href="mimage/favicon.ico" rel="shortcut icon"/>
    <link rel="stylesheet" href="//at.alicdn.com/t/font_607959_8t0w2txptnj.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_538230_hp0r91q784c84cxr.css">
    <link rel="stylesheet" href="/mcss/base.css">
    <link rel="stylesheet" href="/mcss/growth.css">
    <link rel="stylesheet" href="/mcss/userInfo.css">
    <link rel="stylesheet" href="/mcss/loading.css">
</head>

<body>
    <%- include('base/mheader'); %>
    <div class="growth-container">
        <!-- 币种管理 -->
        <div class="growth">
        <div class="loading" v-show="!loading">
                    <div class="preloader_4">
                        <span></span>
                        <span></span>
                        <span></span>
                        <span></span>
                        <span></span>
                    </div>
                </div>
            <%- include('base/muserInfo'); %>
            <div class="growthManagement">
                <% if(allMine.length){ %>
                    <% allMine.forEach( (item,index) => { %>
                    <div class="growthManagementCoin">
                        <div class="currencies clear">
                            <img src="/image/<%- item.coin %>.png" alt="">
                            <div class="coinType fl"><%- item.coin %></div>
                            <div class="coinBlance fr"><%- item.balance %></div>
                        </div>
                        <div class="managementMoney">
                            <a href="/m/deposit/id=0&name=<%- item.coin %>" ><%= __('recharge') %></a>
                            <a href="/m/withdraw/id=1&name=<%- item.coin %>" class="managementMoneyMinddle"><%= __('withdraw') %></a>
                            <!-- <a href="javascript:;"><%= __('recharge') %></a>
                            <a href="javascript:;" class="managementMoneyMinddle"><%= __('withdraw') %></a> -->
                            <!-- <a href="/m/transfer/id=2&name=<%- item.coin %>"><%= __('transfer') %></a> -->
                        </div>                      
                    </div>
                    <% }) %>
                <% } %>
            </div>
            <div class="growth_wrap">
                <div class="wrap_top">
                    <div class="w_t_tit"><%= __('coinHistory') %></div>
                    <div class="w_t_select clear">
                        <div class="w_t_s_type fl">
                            <div class="typeSelect" @click="changeSelect(1)">
                                <span v-html="capitalType"></span>
                                <i></i>
                            </div>
                            <ul :class="{'hidden':!typebool}">
                                <li @click="changefinancetype(0)" class="typetext0"><%= __('all') %></li>
                                <li @click="changefinancetype(1)" class="typetext1"><%= __('game') %></li>
                                <li @click="changefinancetype(2)" class="typetext2"><%= __('recharge') %></li>
                                <li @click="changefinancetype(3)" class="typetext3"><%= __('withdraw') %></li>
                                <li @click="changefinancetype(4)" class="typetext4"><%= __('transfer') %></li>
                                <li @click="changefinancetype(5)" class="typetext5"><%= __('aggame') %></li>
                                <li @click="changefinancetype(8)" class="typetext8"><%= __('Shaba') %></li>
                                <li @click="changefinancetype(6)" class="typetext6"><%= __('extension') %></li>
                                <li @click="changefinancetype(7)" class="typetext7"><%= __('others') %></li>
                            </ul>
                        </div>
                        <div class="w_t_s_type fl">
                            <div class="typeSelect" @click="changeSelect(2)">
                                <img v-if="coinTypee" :src="'/image/'+coinType+'.png'"  alt="">
                                <span v-html="coinType" v-if="coinType"></span>
                                <span v-else><%= __('all') %></span>
                                <i></i>
                            </div>
                            <ul :class="{'hidden':!coinbool}">
                                <li @click="changecointype('','')">
                                    <div><%= __('all') %></div>
                                </li>
                                <% if(allMine.length){ %>
                                    <% allMine.forEach( (item,index) => { %>
                                        <li @click="changecointype('<%= item.coin %>','<%= index %>')">
                                            <img src="/image/<%= item.coin %>.png" alt="">
                                            <div><%= item.coin %></div>
                                        </li>
                                    <% }) %>
                                <% } %>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="wrap_bottom">
                    <ul class="w_b_detail">
                        <div class="list" v-if=" coinhistory.list.length==0"><%= __('NoData') %></div>
                        <li v-for="(item,index) in coinhistory.list">
                            <p class="clear">
                                <span class="w_b_coin fl">{{item.coin}}</span>
                                <span class="w_b_date fr">{{getTime(item.time)}}</span>
                            </p>
                            <p class="clear"> 
                                <span class="w_b_type fl" v-if="filterStr(item.type)=='faucet'"><%= __('faucet') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='pay'"><%= __('pay') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='commission'"><%= __('commission') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='repay'"><%= __('repay') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='invest'"><%= __('invest') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='divest'"><%= __('divest') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='withdraw'"><%= __('withdraw') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='withdraw rejected'"><%= __('withdrawrejected') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='withdraw passed'"><%= __('withdrawpassed') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='withdraw with fee'"><%= __('withdrawwithfee') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='transfer'"><%= __('transfer') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='transfer in'"><%= __('transferin') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='transfer out'"><%= __('transferout') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='deposit'"><%= __('recharge') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='transfer to ag'"><%= __('transfertoag') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='transfer from ag'"><%= __('transferfromag') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='commision'"><%= __('commision') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='transfer to sb'"><%= __('Shaba1') %></span>
                                <span class="w_b_type fl" v-else-if="filterStr(item.type)=='transfer from sb'"><%= __('Shaba2') %></span>
                                <span class="w_b_type fl" v-else>{{item.type}}</span>
                                <!-- <span class="w_b_balance fr" >{{item.amount}}</span> -->
                                <template v-if="item.type=='TRANSFER TO AG'">
                                        <span  class="w_b_balance fr">{{item.agcompute}}</span>
                                    </template>
                                    <template v-else-if="item.type=='TRANSFER TO SB'">
                                        <span  class="w_b_balance fr">{{item.sbcompute}}</span>
                                    </template>
                                    <template v-else-if="item.type=='TRANSFER FROM AG' || item.type=='TRANSFER FROM SB'">
                                        
                                        <span  class="w_b_balance fr">{{item.coin}}</span>
                                        <span  class="w_b_balance fr">{{item.amount}}</span>
                                    </template>
                                    <template v-else>
                                        <!-- <span  class="w_b_balance fr">{{item.amount}}</span> -->
                                    </template>
                                <span class="w_b_type fr" v-if="filterStr(item.type)=='transfer to ag'"><%= __('transfertoag') %></span>
                                <span class="w_b_type fr" v-else-if="filterStr(item.type)=='transfer from ag'"><%= __('transferfromag') %></span>
                                <span class="w_b_type fr" v-else-if="filterStr(item.type)=='transfer to sb'"><%= __('Shaba1') %></span>
                                <span class="w_b_type fr" v-else-if="filterStr(item.type)=='transfer from sb'"><%= __('Shaba2') %></span>
                                <template v-if="item.type=='TRANSFER TO AG' || item.type=='TRANSFER TO SB'">
                                        <span  class="w_b_balance fr">{{item.coin}}</span>
                                        <span  class="w_b_balance fr">{{item.amount}}</span>
                                    </template>
                                    <template v-else-if="item.type=='TRANSFER FROM AG'">
                                        <span  class="w_b_balance fr">{{item.agcompute}}</span>
                                    </template>
                                    <template v-else-if="item.type=='TRANSFER FROM SB'">
                                        <span  class="w_b_balance fr">{{item.sbcompute}}</span>
                                    </template>
                                    <template v-else>
                                            <span  class="w_b_balance fr">{{item.coin}}</span>
                                            <span class="w_b_balance fr" >{{item.amount}}</span>
                                    </template>
                            </p>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
    <script src="/mjs/growth.js"></script>
</body>

</html>